﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - My ASP.NET MVC Application</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("Computer Forum System", "Index", "Arbitrator")</p>
                </div>
                <div class="float-right">
                    @if (HttpContext.Current.Session["Id"] == null)
                    {
                        @RenderSection("LogIn",false);
                        @RenderSection("Register", false);
                    }
                    else
                    {
                        <section id="login">
                            <li>@Html.ActionLink("Hello "+@HttpContext.Current.Session["Username"], "LogOut", "Authentication")</li>
                            <li>@Html.ActionLink("Log out", "LogOut", "Authentication")</li>
                        </section>
                        <nav>
                            <ul id="menu">
                                <li>@Html.ActionLink("Home", "Index", "Home")</li>
                                <li>@Html.ActionLink("Forum section", "Index", "Section")</li>
                            </ul>
                        </nav>
                    }
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p></p>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>
